package com.mindai.esper.monitor.persistence.auto.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class EsperAlarmEplExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EsperAlarmEplExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIdIsNull() {
            addCriterion("alarm_epl_id is null");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIdIsNotNull() {
            addCriterion("alarm_epl_id is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIdEqualTo(Integer value) {
            addCriterion("alarm_epl_id =", value, "alarmEplId");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIdNotEqualTo(Integer value) {
            addCriterion("alarm_epl_id <>", value, "alarmEplId");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIdGreaterThan(Integer value) {
            addCriterion("alarm_epl_id >", value, "alarmEplId");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("alarm_epl_id >=", value, "alarmEplId");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIdLessThan(Integer value) {
            addCriterion("alarm_epl_id <", value, "alarmEplId");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIdLessThanOrEqualTo(Integer value) {
            addCriterion("alarm_epl_id <=", value, "alarmEplId");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIdIn(List<Integer> values) {
            addCriterion("alarm_epl_id in", values, "alarmEplId");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIdNotIn(List<Integer> values) {
            addCriterion("alarm_epl_id not in", values, "alarmEplId");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIdBetween(Integer value1, Integer value2) {
            addCriterion("alarm_epl_id between", value1, value2, "alarmEplId");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIdNotBetween(Integer value1, Integer value2) {
            addCriterion("alarm_epl_id not between", value1, value2, "alarmEplId");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameIsNull() {
            addCriterion("alarm_epl_name is null");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameIsNotNull() {
            addCriterion("alarm_epl_name is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameEqualTo(String value) {
            addCriterion("alarm_epl_name =", value, "alarmEplName");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameNotEqualTo(String value) {
            addCriterion("alarm_epl_name <>", value, "alarmEplName");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameGreaterThan(String value) {
            addCriterion("alarm_epl_name >", value, "alarmEplName");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameGreaterThanOrEqualTo(String value) {
            addCriterion("alarm_epl_name >=", value, "alarmEplName");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameLessThan(String value) {
            addCriterion("alarm_epl_name <", value, "alarmEplName");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameLessThanOrEqualTo(String value) {
            addCriterion("alarm_epl_name <=", value, "alarmEplName");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameLike(String value) {
            addCriterion("alarm_epl_name like", value, "alarmEplName");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameNotLike(String value) {
            addCriterion("alarm_epl_name not like", value, "alarmEplName");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameIn(List<String> values) {
            addCriterion("alarm_epl_name in", values, "alarmEplName");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameNotIn(List<String> values) {
            addCriterion("alarm_epl_name not in", values, "alarmEplName");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameBetween(String value1, String value2) {
            addCriterion("alarm_epl_name between", value1, value2, "alarmEplName");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameNotBetween(String value1, String value2) {
            addCriterion("alarm_epl_name not between", value1, value2, "alarmEplName");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIsNull() {
            addCriterion("alarm_epl is null");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIsNotNull() {
            addCriterion("alarm_epl is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmEplEqualTo(String value) {
            addCriterion("alarm_epl =", value, "alarmEpl");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNotEqualTo(String value) {
            addCriterion("alarm_epl <>", value, "alarmEpl");
            return (Criteria) this;
        }

        public Criteria andAlarmEplGreaterThan(String value) {
            addCriterion("alarm_epl >", value, "alarmEpl");
            return (Criteria) this;
        }

        public Criteria andAlarmEplGreaterThanOrEqualTo(String value) {
            addCriterion("alarm_epl >=", value, "alarmEpl");
            return (Criteria) this;
        }

        public Criteria andAlarmEplLessThan(String value) {
            addCriterion("alarm_epl <", value, "alarmEpl");
            return (Criteria) this;
        }

        public Criteria andAlarmEplLessThanOrEqualTo(String value) {
            addCriterion("alarm_epl <=", value, "alarmEpl");
            return (Criteria) this;
        }

        public Criteria andAlarmEplLike(String value) {
            addCriterion("alarm_epl like", value, "alarmEpl");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNotLike(String value) {
            addCriterion("alarm_epl not like", value, "alarmEpl");
            return (Criteria) this;
        }

        public Criteria andAlarmEplIn(List<String> values) {
            addCriterion("alarm_epl in", values, "alarmEpl");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNotIn(List<String> values) {
            addCriterion("alarm_epl not in", values, "alarmEpl");
            return (Criteria) this;
        }

        public Criteria andAlarmEplBetween(String value1, String value2) {
            addCriterion("alarm_epl between", value1, value2, "alarmEpl");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNotBetween(String value1, String value2) {
            addCriterion("alarm_epl not between", value1, value2, "alarmEpl");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIsNull() {
            addCriterion("alarm_type is null");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIsNotNull() {
            addCriterion("alarm_type is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeEqualTo(Boolean value) {
            addCriterion("alarm_type =", value, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeNotEqualTo(Boolean value) {
            addCriterion("alarm_type <>", value, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeGreaterThan(Boolean value) {
            addCriterion("alarm_type >", value, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeGreaterThanOrEqualTo(Boolean value) {
            addCriterion("alarm_type >=", value, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeLessThan(Boolean value) {
            addCriterion("alarm_type <", value, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeLessThanOrEqualTo(Boolean value) {
            addCriterion("alarm_type <=", value, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeIn(List<Boolean> values) {
            addCriterion("alarm_type in", values, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeNotIn(List<Boolean> values) {
            addCriterion("alarm_type not in", values, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeBetween(Boolean value1, Boolean value2) {
            addCriterion("alarm_type between", value1, value2, "alarmType");
            return (Criteria) this;
        }

        public Criteria andAlarmTypeNotBetween(Boolean value1, Boolean value2) {
            addCriterion("alarm_type not between", value1, value2, "alarmType");
            return (Criteria) this;
        }

        public Criteria andGroupIdIsNull() {
            addCriterion("group_id is null");
            return (Criteria) this;
        }

        public Criteria andGroupIdIsNotNull() {
            addCriterion("group_id is not null");
            return (Criteria) this;
        }

        public Criteria andGroupIdEqualTo(Integer value) {
            addCriterion("group_id =", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdNotEqualTo(Integer value) {
            addCriterion("group_id <>", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdGreaterThan(Integer value) {
            addCriterion("group_id >", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("group_id >=", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdLessThan(Integer value) {
            addCriterion("group_id <", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdLessThanOrEqualTo(Integer value) {
            addCriterion("group_id <=", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdIn(List<Integer> values) {
            addCriterion("group_id in", values, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdNotIn(List<Integer> values) {
            addCriterion("group_id not in", values, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdBetween(Integer value1, Integer value2) {
            addCriterion("group_id between", value1, value2, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdNotBetween(Integer value1, Integer value2) {
            addCriterion("group_id not between", value1, value2, "groupId");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateIsNull() {
            addCriterion("alarm_template is null");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateIsNotNull() {
            addCriterion("alarm_template is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateEqualTo(String value) {
            addCriterion("alarm_template =", value, "alarmTemplate");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateNotEqualTo(String value) {
            addCriterion("alarm_template <>", value, "alarmTemplate");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateGreaterThan(String value) {
            addCriterion("alarm_template >", value, "alarmTemplate");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateGreaterThanOrEqualTo(String value) {
            addCriterion("alarm_template >=", value, "alarmTemplate");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateLessThan(String value) {
            addCriterion("alarm_template <", value, "alarmTemplate");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateLessThanOrEqualTo(String value) {
            addCriterion("alarm_template <=", value, "alarmTemplate");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateLike(String value) {
            addCriterion("alarm_template like", value, "alarmTemplate");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateNotLike(String value) {
            addCriterion("alarm_template not like", value, "alarmTemplate");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateIn(List<String> values) {
            addCriterion("alarm_template in", values, "alarmTemplate");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateNotIn(List<String> values) {
            addCriterion("alarm_template not in", values, "alarmTemplate");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateBetween(String value1, String value2) {
            addCriterion("alarm_template between", value1, value2, "alarmTemplate");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateNotBetween(String value1, String value2) {
            addCriterion("alarm_template not between", value1, value2, "alarmTemplate");
            return (Criteria) this;
        }

        public Criteria andEplDescribeIsNull() {
            addCriterion("epl_describe is null");
            return (Criteria) this;
        }

        public Criteria andEplDescribeIsNotNull() {
            addCriterion("epl_describe is not null");
            return (Criteria) this;
        }

        public Criteria andEplDescribeEqualTo(String value) {
            addCriterion("epl_describe =", value, "eplDescribe");
            return (Criteria) this;
        }

        public Criteria andEplDescribeNotEqualTo(String value) {
            addCriterion("epl_describe <>", value, "eplDescribe");
            return (Criteria) this;
        }

        public Criteria andEplDescribeGreaterThan(String value) {
            addCriterion("epl_describe >", value, "eplDescribe");
            return (Criteria) this;
        }

        public Criteria andEplDescribeGreaterThanOrEqualTo(String value) {
            addCriterion("epl_describe >=", value, "eplDescribe");
            return (Criteria) this;
        }

        public Criteria andEplDescribeLessThan(String value) {
            addCriterion("epl_describe <", value, "eplDescribe");
            return (Criteria) this;
        }

        public Criteria andEplDescribeLessThanOrEqualTo(String value) {
            addCriterion("epl_describe <=", value, "eplDescribe");
            return (Criteria) this;
        }

        public Criteria andEplDescribeLike(String value) {
            addCriterion("epl_describe like", value, "eplDescribe");
            return (Criteria) this;
        }

        public Criteria andEplDescribeNotLike(String value) {
            addCriterion("epl_describe not like", value, "eplDescribe");
            return (Criteria) this;
        }

        public Criteria andEplDescribeIn(List<String> values) {
            addCriterion("epl_describe in", values, "eplDescribe");
            return (Criteria) this;
        }

        public Criteria andEplDescribeNotIn(List<String> values) {
            addCriterion("epl_describe not in", values, "eplDescribe");
            return (Criteria) this;
        }

        public Criteria andEplDescribeBetween(String value1, String value2) {
            addCriterion("epl_describe between", value1, value2, "eplDescribe");
            return (Criteria) this;
        }

        public Criteria andEplDescribeNotBetween(String value1, String value2) {
            addCriterion("epl_describe not between", value1, value2, "eplDescribe");
            return (Criteria) this;
        }

        public Criteria andEplIdIsNull() {
            addCriterion("epl_id is null");
            return (Criteria) this;
        }

        public Criteria andEplIdIsNotNull() {
            addCriterion("epl_id is not null");
            return (Criteria) this;
        }

        public Criteria andEplIdEqualTo(Integer value) {
            addCriterion("epl_id =", value, "eplId");
            return (Criteria) this;
        }

        public Criteria andEplIdNotEqualTo(Integer value) {
            addCriterion("epl_id <>", value, "eplId");
            return (Criteria) this;
        }

        public Criteria andEplIdGreaterThan(Integer value) {
            addCriterion("epl_id >", value, "eplId");
            return (Criteria) this;
        }

        public Criteria andEplIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("epl_id >=", value, "eplId");
            return (Criteria) this;
        }

        public Criteria andEplIdLessThan(Integer value) {
            addCriterion("epl_id <", value, "eplId");
            return (Criteria) this;
        }

        public Criteria andEplIdLessThanOrEqualTo(Integer value) {
            addCriterion("epl_id <=", value, "eplId");
            return (Criteria) this;
        }

        public Criteria andEplIdIn(List<Integer> values) {
            addCriterion("epl_id in", values, "eplId");
            return (Criteria) this;
        }

        public Criteria andEplIdNotIn(List<Integer> values) {
            addCriterion("epl_id not in", values, "eplId");
            return (Criteria) this;
        }

        public Criteria andEplIdBetween(Integer value1, Integer value2) {
            addCriterion("epl_id between", value1, value2, "eplId");
            return (Criteria) this;
        }

        public Criteria andEplIdNotBetween(Integer value1, Integer value2) {
            addCriterion("epl_id not between", value1, value2, "eplId");
            return (Criteria) this;
        }

        public Criteria andAlarmStatusIsNull() {
            addCriterion("alarm_status is null");
            return (Criteria) this;
        }

        public Criteria andAlarmStatusIsNotNull() {
            addCriterion("alarm_status is not null");
            return (Criteria) this;
        }

        public Criteria andAlarmStatusEqualTo(Boolean value) {
            addCriterion("alarm_status =", value, "alarmStatus");
            return (Criteria) this;
        }

        public Criteria andAlarmStatusNotEqualTo(Boolean value) {
            addCriterion("alarm_status <>", value, "alarmStatus");
            return (Criteria) this;
        }

        public Criteria andAlarmStatusGreaterThan(Boolean value) {
            addCriterion("alarm_status >", value, "alarmStatus");
            return (Criteria) this;
        }

        public Criteria andAlarmStatusGreaterThanOrEqualTo(Boolean value) {
            addCriterion("alarm_status >=", value, "alarmStatus");
            return (Criteria) this;
        }

        public Criteria andAlarmStatusLessThan(Boolean value) {
            addCriterion("alarm_status <", value, "alarmStatus");
            return (Criteria) this;
        }

        public Criteria andAlarmStatusLessThanOrEqualTo(Boolean value) {
            addCriterion("alarm_status <=", value, "alarmStatus");
            return (Criteria) this;
        }

        public Criteria andAlarmStatusIn(List<Boolean> values) {
            addCriterion("alarm_status in", values, "alarmStatus");
            return (Criteria) this;
        }

        public Criteria andAlarmStatusNotIn(List<Boolean> values) {
            addCriterion("alarm_status not in", values, "alarmStatus");
            return (Criteria) this;
        }

        public Criteria andAlarmStatusBetween(Boolean value1, Boolean value2) {
            addCriterion("alarm_status between", value1, value2, "alarmStatus");
            return (Criteria) this;
        }

        public Criteria andAlarmStatusNotBetween(Boolean value1, Boolean value2) {
            addCriterion("alarm_status not between", value1, value2, "alarmStatus");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNull() {
            addCriterion("create_by is null");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNotNull() {
            addCriterion("create_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreateByEqualTo(String value) {
            addCriterion("create_by =", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotEqualTo(String value) {
            addCriterion("create_by <>", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThan(String value) {
            addCriterion("create_by >", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThanOrEqualTo(String value) {
            addCriterion("create_by >=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThan(String value) {
            addCriterion("create_by <", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThanOrEqualTo(String value) {
            addCriterion("create_by <=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLike(String value) {
            addCriterion("create_by like", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotLike(String value) {
            addCriterion("create_by not like", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByIn(List<String> values) {
            addCriterion("create_by in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotIn(List<String> values) {
            addCriterion("create_by not in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByBetween(String value1, String value2) {
            addCriterion("create_by between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotBetween(String value1, String value2) {
            addCriterion("create_by not between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andAlarmEplNameLikeInsensitive(String value) {
            addCriterion("upper(alarm_epl_name) like", value.toUpperCase(), "alarmEplName");
            return (Criteria) this;
        }

        public Criteria andAlarmEplLikeInsensitive(String value) {
            addCriterion("upper(alarm_epl) like", value.toUpperCase(), "alarmEpl");
            return (Criteria) this;
        }

        public Criteria andAlarmTemplateLikeInsensitive(String value) {
            addCriterion("upper(alarm_template) like", value.toUpperCase(), "alarmTemplate");
            return (Criteria) this;
        }

        public Criteria andEplDescribeLikeInsensitive(String value) {
            addCriterion("upper(epl_describe) like", value.toUpperCase(), "eplDescribe");
            return (Criteria) this;
        }

        public Criteria andCreateByLikeInsensitive(String value) {
            addCriterion("upper(create_by) like", value.toUpperCase(), "createBy");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}